package com.lineage.server.serverpackets;

import com.lineage.server.model.Instance.L1NpcInstance;

public class S_NoSell extends ServerBasePacket {
  private byte[] _byte;
  
  public S_NoSell(L1NpcInstance npc) {
    this._byte = null;
    buildPacket(npc);
  }
  
  private void buildPacket(L1NpcInstance npc) {
    writeC(39);
    writeD(npc.getId());
    writeS("nosell");
    writeC(1);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
